import request from '/@/utils/request';

/**
 *
 * ds接口集合
 * @method departmentList 患者就诊列表
 * @method recordDetail 患者就诊详情
 * @method recordOperation 预约手术
 * @method recordBed 预约床位
 * @method discharge 退出日间
 * @method updatePatientRecord 修改患者就诊记录
 * @method revokePatient 撤销申请
 */

export function dsApi() {
	return {
		patientRecords: (data) => {
			return request({
				url: '/patient/records',
				method: 'post',
				data,
			});
		},
    recordDetail: (data) => {
			return request({
				url: '/patient/show',
				method: 'get',
				params:data,
			});
		},
    recordOperation: (data) => {
			return request({
				url: '/patient/record_operation',
				method: 'post',
				data
			});
		},
    recordBed: (data) => {
			return request({
				url: '/patient/record_bed',
				method: 'post',
				data
			});
		},
		cancelBed: (data) => {
			return request({
				url: '/patient/cancel_record_bed',
				method: 'post',
				data
			});
		},
    discharge: (data) => {
			return request({
				url: '/patient/discharge',
				method: 'post',
				data
			});
		},
		updatePatientRecord: (data) => {
			return request({
				url: '/patient/update_patient_record',
				method: 'post',
				data
			});
		},
		getMedicalRecordUrl: (data) => {
			return request({
				url: '/patient/get_medical_record_url',
				method: 'get',
				params:data,
			});
		},
		revokePatient: (data) => {
			return request({
				url: '/patient/revoke',
				method: 'post',
				data
			});
		},
		
	};
}


